home *** CD-ROM | disk | FTP | other *** search
- Path: news1.h1.usa.pipeline.com!usenet
- From: grantp@usa.pipeline.com(Pete)
- Newsgroups: comp.lang.c++
- Subject: Re: BASM; in TC++
- Date: 2 Mar 1996 21:22:48 GMT
- Organization: Kalevi, Inc.
- Message-ID: <4hae78$ile@news1.usa.pipeline.com>
- References: <31383B22.A13@algonet.se>
- NNTP-Posting-Host: pipe4.h1.usa.pipeline.com
- X-PipeUser: grantp
- X-PipeHub: usa.pipeline.com
- X-PipeGCOS: (Pete)
- X-Newsreader: Pipeline v3.5.0
-
- On Mar 02, 1996 13:12:18 in article <BASM; in TC++>, 'Marcus G Johansson
- <astro1@algonet.se>' wrote:
-
-
- >I've been trying to write some assembler in TC++ (BASM), but I can't write
-
- >labels, no matter how I write em (tried lot's of ways) it don't work..
- Either I
- >
- >declared it wrong or it's not existing when I make the jump, so how do I
- do
- >it?
- >
- The labels must be outside any asm block(s). Example:
-
- int foo = 0;
- asm {
- mov ax,foo
- add ax,20
- }
- int bar;
- asm {
- mov bar,ax
- ....
- }
- here:
- asm {
- xor ax,ax
- jz here
- }
-
- --
- Pete Grant
- Kalevi, Inc.
- Software Engineering & development
-